//
//  NewsCellT.m
//  结构
//
//  Created by 看着太阳吃烧饼 on 15/7/21.
//  Copyright (c) 2015年 看着太阳吃烧饼. All rights reserved.
//

#import "NewsCellT.h"

@implementation NewsCellT



- (void)awakeFromNib {
    // Initialization code
}

- (void)setModal:(NewsModal *)modal {
    _modal = modal;
    [self setNeedsLayout];
}

- (void)layoutSubviews {
    _newsTitle.text = _modal.title;
    _newsSummary.text = _modal.summary;
    if (_modal.type == 1) {
        _smallImage.image = [UIImage imageNamed:@"sctpxw@2x.png"];
    }
    
    _NewsNext.image = [UIImage imageNamed:@""];
    [_newsImage sd_setImageWithURL:[NSURL URLWithString:_modal.image]];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
